import request from '@/utils/request'

// 查询运费价目列表
export function listFreightPriceLis(query) {
  return request({
    url: '/ys/freightPriceLis/list',
    method: 'get',
    params: query
  })
}

// 查询运费价目详细
export function getFreightPriceLis(id) {
  return request({
    url: '/ys/freightPriceLis/' + id,
    method: 'get'
  })
}

// 新增运费价目
export function addFreightPriceLis(data) {
  return request({
    url: '/ys/freightPriceLis',
    method: 'post',
    data: data
  })
}

// 修改运费价目
export function updateFreightPriceLis(data) {
  return request({
    url: '/ys/freightPriceLis',
    method: 'put',
    data: data
  })
}

// 删除运费价目
export function delFreightPriceLis(id) {
  return request({
    url: '/ys/freightPriceLis/' + id,
    method: 'delete'
  })
}
